//
//  FXLabel.h
//
//  Version 1.1
//
//  Created by Nick Lockwood on 20/08/2011.
//  Copyright 2011 Charcoal Design. All rights reserved.
//
//  Get the latest version from either of these locations:
//
//  http://charcoaldesign.co.uk/source/cocoa#fxlabel
//  https://github.com/nicklockwood/FXLabel
//
//  This software is provided 'as-is', without any express or implied
//  warranty.  In no event will the authors be held liable for any damages
//  arising from the use of this software.
//
//  Permission is granted to anyone to use this software for any purpose,
//  including commercial applications, and to alter it and redistribute it
//  freely, subject to the following restrictions:
//
//  1. The origin of this software must not be misrepresented; you must not
//  claim that you wrote the original software. If you use this software
//  in a product, an acknowledgment in the product documentation would be
//  appreciated but is not required.
//  2. Altered source versions must be plainly marked as such, and must not be
//  misrepresented as being the original software.
//  3. This notice may not be removed or altered from any source distribution.
//


/*
 firstLabel = [[FXLabel alloc] init];
 firstLabel.frame = CGRectMake(40, 40, 240, 80);
 firstLabel.backgroundColor = [UIColor clearColor];
 firstLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:35];
 firstLabel.text = @"第一种效果";
 firstLabel.textColor = [UIColor grayColor];
 firstLabel.shadowColor = [UIColor colorWithWhite:1.0f alpha:0.8f];
 firstLabel.shadowOffset = CGSizeMake(1.0f, 2.0f);
 firstLabel.shadowBlur = 1.0f;
 firstLabel.innerShadowColor = [UIColor colorWithWhite:0.0f alpha:0.8f];
 firstLabel.innerShadowOffset = CGSizeMake(1.0f, 2.0f);    
 [self.view addSubview:firstLabel];
 
 secondLabel = [[FXLabel alloc] init];
 secondLabel.frame = CGRectMake(40, 140, 240, 80);
 secondLabel.backgroundColor = [UIColor clearColor];
 secondLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:35];
 secondLabel.text = @"第二种效果";
 secondLabel.textColor = [UIColor whiteColor];
 secondLabel.shadowColor = [UIColor colorWithWhite:0.0f alpha:0.75f];
 secondLabel.shadowOffset = CGSizeMake(0.0f, 5.0f);
 secondLabel.shadowBlur = 5.0f;
 [self.view addSubview:secondLabel];
 
 thirdyLabel = [[FXLabel alloc] init];
 thirdyLabel.frame = CGRectMake(40, 240, 240, 80);
 thirdyLabel.backgroundColor = [UIColor clearColor];
 thirdyLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:35];
 thirdyLabel.text = @"第三种效果";
 thirdyLabel.gradientStartColor = [UIColor redColor];
 thirdyLabel.gradientEndColor = [UIColor blackColor];    
 [self.view addSubview:thirdyLabel];
 
 fourthLabel = [[FXLabel alloc] init];
 fourthLabel.frame = CGRectMake(40, 340, 240, 80);
 fourthLabel.backgroundColor = [UIColor clearColor];
 fourthLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:35];
 fourthLabel.text = @"第四种效果";
 fourthLabel.shadowColor = [UIColor blackColor];
 fourthLabel.shadowOffset = CGSizeZero;
 fourthLabel.shadowBlur = 20.0f;
 fourthLabel.innerShadowColor = [UIColor yellowColor];
 fourthLabel.innerShadowOffset = CGSizeMake(1.0f, 2.0f);
 fourthLabel.gradientStartColor = [UIColor redColor];
 fourthLabel.gradientEndColor = [UIColor yellowColor];
 fourthLabel.gradientStartPoint = CGPointMake(0.0f, 0.5f);
 fourthLabel.gradientEndPoint = CGPointMake(1.0f, 0.5f);  
 [self.view addSubview:fourthLabel];
 
 */

#import <UIKit/UIKit.h>

typedef enum {
    kFXLABLE_CARVED_STYLE = 0
    /* 现在只有一种， 以后再添加*/
}FXLABLE_STYLE;


@interface FXLabel : UILabel

@property (nonatomic, assign) CGFloat shadowBlur;
@property (nonatomic, assign) CGSize innerShadowOffset;
@property (nonatomic, retain) UIColor *innerShadowColor;
@property (nonatomic, retain) UIColor *gradientStartColor;
@property (nonatomic, retain) UIColor *gradientEndColor;
@property (nonatomic, assign) CGPoint gradientStartPoint;
@property (nonatomic, assign) CGPoint gradientEndPoint;

- (id) initWithStyle : (FXLABLE_STYLE) style;
@end
